<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .size {
        width: 95%;
        height: 64px;
        background-color: green;
        line-height: 64px;
        margin: 0 auto;
    }

    span {
        float: left;
    }

    input {
        float: right
    }
    </style>
</head>

<body>
    <div class="size"> <span>原因</span>
        <input type="text"> </div>

 <script >
 	getBashRedirect = () => {
    // According to the url parameter to redirect
    // 这里是重定向的,重定向到 url 的 redirect 参数所示地址
    const urlParams = new URL(window.location.href);

    const redirect = urlParams.searchParams.get('redirect');
    // Remove the parameters in the url
    if (redirect) {
      urlParams.searchParams.delete('redirect');
      window.history.replaceState(null, 'redirect', urlParams.href);
    } else {
      return '/checkWorkAttendance';
    }
    return redirect;
  }
const bashRedirect = this.getBashRedirect();
console.log(bashRedirect);
 </script>
</body>

</html>